<script type="text/javascript" src="/js/app/profile.js"></script>

<script type="text/javascript" src="/js/languages/jquery.validationEngine-<?php echo $language ?>.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.validationEngine.js"></script>

<div class="one-half">
    <div class="box">
        <div class="inner">
            <div class="titlebar"><span class="icon entypo white cloud"></span> <span class="w-icon">
                <?php echo lang('profile.title'); ?></span></div>
            <form id="profile" action="/index.php/profile/save" method="post">
                <div class="contents">
                    <div class="row">
                        <label><?php echo lang('profile.user_name'); ?></label>
                        <div class="field-box"><span class="icon entypo user for-input"></span>
                            <input readonly type="text" value="<?php echo $login ?>" class="w-icon medium validate[required]"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="row">
                        <label><?php echo lang('profile.name'); ?></label>
                        <div class="field-box"><span class="icon entypo user for-input"></span>
                            <input type="text" name="name" value="<?php echo $name ?>" class="w-icon medium"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="row">
                        <label><?php echo lang('profile.address'); ?></label>
                        <div class="field-box"><span class="icon entypo address for-input"></span>
                            <input type="text" name="address" value="<?php echo $address ?>" class="w-icon medium"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="row">
                        <label><?php echo lang('profile.email'); ?></label>
                        <div class="field-box"><span class="icon entypo email for-input"></span>
                            <input type="text" name="email" value="<?php echo $email ?>" class="w-icon medium validate[required, custom[email]]"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="row">
                        <label><?php echo lang('profile.phone'); ?></label>
                        <div class="field-box">
                            <span class="icon entypo phone for-input"></span>
                            <input type="text" name="phone" value="<?php echo $phone ?>" class="w-icon medium validate[required, custom[phone]]">
                        </div>
                        <div class="clear"></div>
                    </div>

                    <div class="row">
                        <label><?php echo lang('profile.group'); ?></label> <div class="field-box"><span class="icon entypo users for-input"></span>
                        <input type="text" value="<?php echo $group ?>" class="w-icon medium  validate[required]"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="row">
                        <label><?php echo lang('profile.error_synced'); ?></label>
                        <div class="field-box">
                            <select name="errorSynced" class="medium">
                                <option value="1" <?php if($errorSynced) { echo 'selected'; } ?>>Yes</option>
                                <option value="0" <?php if(!$errorSynced) { echo 'selected'; } ?>>No</option>
                            </select>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="bar-big">
                    <input type="submit" value="Submit">
                    <input type="reset" value="Reset">
                </div>
            </form>
        </div>
    </div>
</div>